package com.example.convert;

import org.joda.time.DateTime;
import org.springframework.core.convert.converter.Converter;

/**
 * @Date 2022/3/5
 * @Created by Jonathan
 */

public class DateConverter implements Converter<String, DateTime> {
    @Override
    public DateTime convert(String s) {
        return DateTime.parse(s);
    }
}
